﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Services;
using Domain;
using Ninject;

namespace ProductManager {
    class Program {

        
        

        static void Main(string[] args) {

            IKernel kernel = Injection.Kernel.SetupDI();
            CommandManager mgr = new CommandManager(kernel.Get<IRepository>());

            string s = Console.ReadLine().ToUpper();

            while (s != "EXIT") {
                
                
                mgr.ExecuteCommand(s);

                s = Console.ReadLine().ToUpper();
            }          
        }


        

        //WithConstructorArgument("connectionString", @"Server=.\sqlexpress;Database=Products;Trusted_Connection=yes;"
        
    }
}
